export default function useNumberLimit(
  numbers: Ref<string | number>,
  maxLength: number = 6
) {
  watch(numbers, newVal => {
    if (typeof newVal === "string" && newVal.length > maxLength) {
      numbers.value = newVal.slice(0, maxLength);
    }
  });
}
